<table width="100%">
<caption><h1>Article View</h1><span><?=html::anchor('article/edit/'.$article->id, 'Edit')?></span></caption>
<thead><tr>
	<th width="20%">属性</th>
	<th width="80%">内容</th>
</tr></thead>
<tbody id="myTable"><tr>
	<td>ID</td>
	<td><?=$article->id?></td>
</tr><tr>
	<td>Name</td>
	<td><?=$article->name?></td>
</tr><tr>
	<td>中文标题</td>
	<td><?=$article->title_cn?></td>
</tr><tr>
	<td>英文标题</td>
	<td><?=$article->title_en?></td>
</tr><tr>
	<td>中文简介</td>
	<td><?=nl2br($article->highlight_cn)?></td>
</tr><tr>
	<td>英文简介</td>
	<td><?=nl2br($article->highlight_en)?></td>
</tr><tr>
	<td>中文内容</td>
	<td><?=nl2br($article->content_cn)?></td>
</tr><tr>
	<td>英文内容</td>
	<td><?=nl2br($article->content_en)?></td>
</tr><tr>
	<td>创建时间</td>
	<td><?=$article->created_at?></td>
</tr><tr>
	<td>更新时间</td>
	<td><?=$article->updated_at?></td>
</tr><tr>
	<td>图片</td>
	<td>
		<?php if(file_exists(DOCROOT.'../resource/article/'.$article->id.'.jpg')) { ?>  
			<img src="<?=Config::item('config.website').'/resource/article/'.$article->id.'.jpg'?>" width="700"/>
			<?=html::anchor('article/delete_photo/'.$article->id, '删除图片')?>
		<?php } ?> 
	</td>
</tr></tbody></table>
<?=html::script('js/table.js')?>
